package Model;

/**
 * Classe modelo para as ovelhas.
 * Todas as informacoes referente as ovelhas estao nesta classe.
 * 
 * @author Edjane Catolle, Igor Henrique, Luiz Augusto, Vladmir Chicarolli
 * @version 1.0.0
 * @since 05/31/2011
 */

import java.awt.Point;
import java.awt.Rectangle;

public class SheepModel
{
	public static SheepModel _sheep = null;
	private Point position;	
	private Rectangle rectSheep;
	private int qtd;
	
	public SheepModel()
	{
		this.position = new Point(9 * 50, 6 * 50);//Instancia a posicao no centro da tela para as ovelhas
		this.rectSheep = new Rectangle(this.position.x, this.position.y, 50, 50);
		this.qtd = 10;
	}
	
	public void init()
	{
		this.position = new Point(9 * 50, 6 * 50);			
		this.rectSheep = new Rectangle(this.position.x, this.position.y, 50, 50);
		this.qtd = 10;
	}
	
	public Point GetPosition()
	{
		return position;
	}
	
	public Rectangle GetRectSheep()
	{
		return rectSheep;
	}
	
	public int GetQtd()
	{
		return qtd;
	}
	
	public void RemoveSheep()
	{
		this.qtd --;
	}
	
	public static SheepModel SheepManager()
	{
		if(_sheep == null)
		{
			_sheep = new SheepModel();
		}
		return _sheep;
	}
}
